Fix crash with bidi display on the last empty line (bug#6030).
authorEli Zaretskii <eliz@gnu.org>
Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)
commit1d253f3c4d2ac75c91e38dea35ac39bb8e447ff2
tree8fd60c40bc8209278529857fbc100c32e0a0cd2b
parentf7811fda5fd05566a2cfb16386d1ea3c80185b6d
parente6b3c1ccac80fe0aeacf8dc64d0b121a4137cee2
Fix crash with bidi display on the last empty line (bug#6030).

 xdisp.c (display_line): Don't assume 2nd call to
 get_next_display_element cannot return zero.  (Bug#6030)

Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.
src/ChangeLog